import request from '@/utils/request'

// 查询可转债基础信息列表
export function listBasic(query) {
    return request({
        url: '/bond/basic/list',
        method: 'get',
        params: query
    })
}

// 查询可转债基础信息详细
export function getBasic(id) {
    return request({
        url: '/bond/basic/' + id,
        method: 'get'
    })
}

// 新增可转债基础信息
export function addBasic(data) {
    return request({
        url: '/bond/basic',
        method: 'post',
        data: data
    })
}

// 修改可转债基础信息
export function updateBasic(data) {
    return request({
        url: '/bond/basic',
        method: 'put',
        data: data
    })
}

// 删除可转债基础信息
export function delBasic(id) {
    return request({
        url: '/bond/basic/' + id,
        method: 'delete'
    })
}
